/**
 * Created by ruiyuan on 15-10-8.
 */

module.exports = function (app) {
    var task = require('../controllers/task-controller');

    var tokenFilter = require('../filters/token-filter');

    app.all('/rest/' + RESTFullServiceVersion + '/task/*', tokenFilter.doCheckToken);

    app.get('/rest/' + RESTFullServiceVersion + '/task/novice/detail/:token/:deviceId', task.getNoviceTaskDetail);

    /*  宝宝树66小区二次改造    add   chenf  20170721   start   */
    app.get('/rest/' + RESTFullServiceVersion + '/task/novice/getFinishTask/:token/:deviceId', task.getFinishTask);
    /*  宝宝树66小区二次改造    add   chenf  20170721   end   */


};